home *** CD-ROM | disk | FTP | other *** search
/ EnigmA Amiga Run 1997 April / EnigmA AMIGA RUN 17 (1997)(G.R. Edizioni)(IT)[!][issue 1997-04][EAR-CD].iso / EARCD / comm / bbs / Hydra11s.lha / HBBS / Source / Oberon / BBSConstants.mod < prev    next >
Text File  |  1996-07-05  |  11KB  |  369 lines

  1. MODULE BBSConstants;
  2.  
  3. CONST
  4.     AcsDlFiles* = 0;
  5.     AcsStrDlFiles* =      "DownloadFiles";
  6.     AcsUlFiles* = 1;
  7.     AcsStrUlFiles* =      "UploadFiles";
  8.     AcsSysopComment* = 2;
  9.     AcsStrSysopComment* = "SysopComment";
  10.     AcsReadMail* = 3;
  11.     AcsStrReadMail* =     "ReadMail";
  12.     AcsWriteMail* = 4;
  13.     AcsStrWriteMail* =    "WriteMail";
  14.     AcsScanMail* = 5;
  15.     AcsStrScanMail* =     "ScanMail";
  16.     AcsAllowStatus* = 6;
  17.     AcsStrAllowStatus* =  "AllowStatus";
  18.     AcsAllowEdit* = 7;
  19.     AcsStrAllowEdit* =    "AllowEdit";
  20.     AcsScanFiles* = 8;
  21.     AcsStrScanFiles* =    "ScanFiles";
  22.     AcsAllowView* = 7;
  23.     AcsStrAllowView* =    "AllowView";
  24.  
  25.     AcsEditHandle* = 40;
  26.     AcsStrEditHandle* =   "EditHandle";
  27.     AcsEditRealName* = 41;
  28.     AcsStrRealName* =     "EditRealName";
  29.     AcsEditPassword* = 42;
  30.     AcsStrEditPassword* = "EditPassword";
  31.     AcsEditGroup* = 43;
  32.     AcsStrEditGroup* =    "EditGroup";
  33.     AcsEditLocation* = 44;
  34.     AcsStrEditLocation* = "EditLocation";
  35.     AcsEditCountry* = 45;
  36.     AcsStrEditCountry* =  "EditCountry";
  37.     AcsEditComputer* = 46;
  38.     AcsStrEditComputer* = "EditComputer";
  39.     AcsEditPhoneNumber* = 47;
  40.     AcsStrEditPhoneNumber* = "EditPhoneNumber";
  41.     AcsEditScreenType* = 48;
  42.     AcsStrEditScreenType* = "EditScreenType";
  43.     AcsEditLines* = 49;
  44.     AcsStrEditLines* =    "EditLines";
  45.     AcsEditEditor* = 50;
  46.     AcsStrEditEditor* =   "EditEditor";
  47.     AcsEditProtocol* = 51;
  48.     AcsStrEditProtocol* = "EditProtocol";
  49.  
  50.     AcsDeleteMail* = 80;      (* delete any mail ? *)
  51.     AcsStrDeleteMail* =   "DeleteMail";
  52.     AcsDeleteGroup* = 81;     (* delete group mail ? *)
  53.     AcsStrDeleteGroup* =  "DeleteGroup";
  54.     AcsDeleteAnyone* = 82;    (* delete anyones mail ? *)
  55.     AcsStrDeleteAnyone* = "DeleteAnyone";
  56.     AcsAllowAnsi* = 83;       (* allow ANSIs in mail ? *)
  57.     AcsAllowSysop* = 84;      (* sysop mail ? *)
  58.     AcsAllowPrivate* = 85;    (* private mail ? *)
  59.     AcsAllowGroup* = 86;      (* group mail ? *)
  60.     AcsAllowConference* = 87; (* conference mail ? *)
  61.     AcsAllowAll* = 88;        (* all mail ? *)
  62.     AcsStrAllowAll* =     "AllowALL";
  63.     AcsAllowEverybody* = 89;  (* eall ? *)
  64.     AcsStrAllowEverybody* = "AllowEverybody";
  65.     AcsAllowMultiple* = 90;   (* multiple mail ? *)
  66.     AcsStrAllowMultiple* = "AllowMultiple";
  67.  
  68.     AcsAttachFiles* = 91;      (* allow file attach *)
  69.     AcsStrAttachFiles* =  "AttachFiles";
  70.  
  71.     AcsAllowMultiFiles* = 92;  (* and with following settings *)
  72.     AcsStrAllowMultiFiles* = "AllowMultiFiles";
  73.     AcsAllowPrivateFiles* = 93;
  74.     AcsStrAllowPrivateFiles* = "AllowPrivateFiles";
  75.     AcsAllowAllFiles* = 94;
  76.     AcsStrAllowAllFiles* = "AllowAllFiles";
  77.     AcsAllowEveryoneFiles* = 95;
  78.     AcsStrAllowEveryoneFiles* = "AllowEveryoneFiles";
  79.     AcsAllowGroupFiles* = 96;
  80.     AcsUnlimTime* = 120;
  81.     AcsStrUnlimTime* = "UnlimitedTime";
  82.     AcsUnlimCalls* = 121;
  83.     AcsStrUnlimCalls* = "UnlimitedCalls";
  84.     AcsUnlimBytes* = 122;
  85.     AcsStrUnlimBytes = "UnlimitedBytes";
  86.     AcsUnlimChat = 123;
  87.     AcsStrUnlimChat = "UnlimitedChat";
  88.  
  89.     (* defines for askmsg^.flags for Control program *)
  90.     AskBBSGlobal* = 1;
  91.     (* defines for askmsg^.flags for Node program *)
  92.     AskStatus* = 20;
  93.  
  94.     (* error messages for HbbsLogError *)
  95.     ErrNoError* = 0;
  96.     ErrErrorOpening* = 1;
  97.     ErrErrorReading* = 2;
  98.     ErrErrorWriting* = 3;
  99.     ErrGeneral* = 4;
  100.     ErrNodeSettings* = 5;
  101.     ErrDoorTimeOut* = 6;
  102.  
  103.     TypeNone* = 0;
  104.     TypeFatal* = 1;
  105.     TypeCritical* = 2;
  106.     TypeImportant* = 3;
  107.     TypeWarning* = 4;
  108.     TypeDontCare* = 5;
  109.     TypeMemory* = 6;
  110.  
  111.     BigStr* = 1024;
  112.  
  113.     vTypeTime* = 1;
  114.     vTypeSmallNum* = 2;
  115.     vTypeBigNum* = 3;
  116.     vTypeString* = 4;
  117.     vTypeBool* = 5;
  118.     vTypeStringList* = 6;
  119.     vTypeFlags* = 7;
  120.     vTypePath* = 8;
  121.     vTypePathList* = 9;
  122.     vTypeWord* = 10;
  123.     vTypeDate* = 11;
  124.  
  125.     OptSingle* = 0;
  126.     OptMulti* = 1;
  127.  
  128.     (* possible node status *)
  129.     StatClosed* = 0;
  130.     StatLoading* = 1;
  131.     StatInitializing* = 2;
  132.     StatReady* = 3;
  133.     StatOnline* = 4;
  134.     StatClosing* = 5;
  135.  
  136.     (* gets sent to node program when you want a node to shutdown *)
  137.     StatRequestClose* = 6;
  138.  
  139.     (* send to node if you want it to open or close it's window *)
  140.     StatOpenWindow* = 7;
  141.     StatCloseWindow* = 8;
  142.     (* send to node if you want it to open or close it's screen *)
  143.     StatOpenScreen* = 9;
  144.     StatCloseScreen* = 10;
  145.  
  146.     (* login types *)
  147.     LoginNone* = 0;
  148.     LoginRemote* = 1;
  149.     LoginLocal* = 2;
  150.  
  151.     (* possible flags for displaying informations in the ctrl window's status ar *)
  152.     UpdNodeStatus* = 1;
  153.  
  154.     (* some string lenghts *)
  155.     LenNodeStatName* = 10;
  156.     LenCurrentLine* = 1024;
  157.     LenMaxDoorReturn* = 255;
  158.     LenDateStr* = 12; (* DD-MMM-YYYY + terminator *)
  159.     LenTimeStr* = 9;  (* HH:MM:SS + terminator *)
  160.  
  161.     (* tell control program to update the currently displayed list above
  162.        the information gadget (callers/dls/uls...) *)
  163.  
  164.     ReqUpdateInfo* = 1;
  165.  
  166.     (* message types *)
  167.     mTypeAsk* = 1;
  168.     mTypeStatus* = 2;
  169.     mTypeDoorActivity* = 3;
  170.     mTypeDoorIO* = 4;
  171.     mTypeRequest* = 5;
  172.     mTypeCheck* = 6;
  173.  
  174.     (* door status message types *)
  175.     dMsgDoorStarted* = 1;
  176.     dMsgDoorFinished* = 2;
  177.  
  178.     (* door IO messages types *)
  179.     DoorIOWriteConStr* = 1;
  180.     DoorIOWriteConData* = 2;
  181.     DoorIOWriteSerStr* = 3;
  182.     DoorIOWriteSerData* = 4;
  183.     DoorIOWriteStr* = 5;
  184.     DoorIOGetLine* = 6;
  185.     DoorIOSystemDoor* = 7;
  186.     DoorIOUserDoor* = 8;
  187.     DoorIOHangup* = 9;
  188.     DoorIODisplayScreen* = 10;
  189.     DoorIODisplaySpecialScreen* = 11;
  190.     DoorIOPausePrompt* = 12;
  191.     DoorIOAddLastUpload* = 13;
  192.     DoorIOContinuePrompt* = 14;
  193.     DoorIOMenuPrompt* = 15;
  194.     DoorIOCheckRaw* = 16;
  195.  
  196.     (* GetLine flags *)
  197.     GlNone* = 0;            (* no flags *)
  198.     GlHistory* = 1;         (* if set, history is enabled (up/down keys) *)
  199.     (* if maxlen is reached then data back to the last character is copied to
  200.        NnD^.CurrentLineWrap and return immediately *)
  201.     GlLineWrap* = 2;
  202.     GlImmediate* = 4;       (* return if maxlen is reached *)
  203.     GlNoReturn* = 8;        (* does not print a CR+LF at end *)
  204.     GlEdit* = 16;           (* enabled cursor left/right and backspace/delete *)
  205.     GlDisplay* = 32;        (* display chars *)
  206.     GlSysop* = 64;          (* does not write to or read from the serial port *)
  207.     GlUserChars* = 128;     (* see NnD^.CharsAllowed *)
  208.     GlNoBeep* = 256;        (* use with GlUserChars if you don't want a beep
  209.                    if the user press a key not in NnD^.CharsAllowed *)
  210.     GlNoOLM* = 512;         (* if set olm's will not interrupt the user *)
  211.     GlNoDisturb = 1024;
  212.  
  213.     NodeGlobal* = 200000;
  214.  
  215.     InConsole* = 1;
  216.     InSerial* = 2;
  217.  
  218.     GetAnywhere* = 0;
  219.     GetSerial* = 1;
  220.     GetConsole* = 2;
  221.  
  222.     DefConBufLen* = 2048; (* default length used to allocate NodeData^.ConBuffer *)
  223.     DefSerBufLen* = 2048; (* default length used to allocate NodeData^.SerBuffer *)
  224.     (* note: these may be reallocated bye the programm to a different length,
  225.        so check NodeData^.Con/SerBufferLen for actual current length ! *)
  226.  
  227.     InNothing* = 0;       (* reserved *)
  228.     InGotLine* = 1;       (* returned if function actually got a line of text *)
  229.     InLostCarrier* = 2;   (* returned only if NnD^.LoginType # LoginNone
  230.                  or sysop logged user off :-) *)
  231.     InLogin* = 3;         (* returned only if NnD^.LoginType = LoginNone and
  232.                  sysop wants to local login *)
  233.     InShutdown* = 4;      (* will never be returned to a door, only to AwaitConnect
  234.                  due the fact that NnD^.RequestShutdown can only
  235.                  be set if there's no user online and therefore no door
  236.                  can be running! *)
  237.     InImmediate* = 5;
  238.     InTerminal* = 6;
  239.     InTimeOut* = 7;
  240.     InEndChat* = 8;
  241.     InDisplayAwait* = 9;  (* if sysop presses F4 at await connect prompt *)
  242.  
  243.     LenHandle* = 25;
  244.     LenRealName* = 30;
  245.     LenGroup* = 30;
  246.     LenGeoLocation* = 20;
  247.     LenCountry* = 20;
  248.     LenPhoneNumber* = 20;
  249.     LenPassword* = 20;
  250.     LenComputerType* = 40;
  251.     LenSentBy* = 48;
  252.     LenTimeAccess* = 32;
  253.     LenConfAccessFile* = 32;
  254.     LenLeechAccessFile* = 32;
  255.  
  256.     MaxAccessSettings* = 4096;
  257.  
  258.     (* tell node what to update *)
  259.     UpdName* = 1;
  260.     UpdGroup* = 2;
  261.     UpdAction* = 3;
  262.     UpdCPSBaud* = 4;
  263.  
  264.     (* string length for actions *)
  265.     MaxActionLen* = 29;
  266.     MaxCPSBaudLen* = 8;
  267.     MaxGroupLen* = 20;
  268.     MaxNameLen* = 20;
  269.  
  270.     TimeoutDoorLoad* = 10; (* ten seconds *)
  271.  
  272.     LTRUE* = LONG(1); (* due to fact TRUE in C is not TRUE in Oberon *)
  273.     LFALSE* = LONG(0);
  274.  
  275.     OSOnline* = LTRUE;
  276.     OSOffline* = LFALSE;
  277.  
  278.     (* flags for UserData^.Status *)
  279.     UserNew* = "N";
  280.     UserValidated* = "V";
  281.     UserDeleted* = "D";
  282.     UserInactive* = "I";
  283.     UserLoginsDenied* = "L";
  284.     UserOverwritable* = "O";
  285.  
  286.     (* screen names use these when calling DOORDisplaySpecialScreen *)
  287.     SSScreenPrivateSystem* = "PRIVATESYSTEM";
  288.     SSScreenPrivateNode* =   "PRIVATENODE";
  289.     SSScreenBBSTitle* =      "BBSTITLE";
  290.     SSScreenNoNewAttAll* =   "NONEWAT_ALL";
  291.     SSScreenNoNewAtThisTime* = "NONEWAT_THISTIME";
  292.     SSScreenGuestLogin* =    "GUESTLOGIN";
  293.     SSScreenJoined* =        "JOINED";
  294.     SSScreenLoginLogo* =     "LOGINLOGO";
  295.     SSScreenBulletin* =      "BULLETIN";
  296.     SSScreenConfBulletin* =  "CONFBULLETIN";
  297.  
  298.     (* user level types *)
  299.     UserTypeNormal* = "N";
  300.     UserTypeExpert* = "X";
  301.  
  302.     (* protocol directional types *)
  303.     pTypeUnidirectional* = 1;
  304.     pTypeBidirectionnal* = 2;
  305.  
  306.     (* node flags *)
  307.     nFlagNone* = 0;
  308.     nFlagBlockSerial* = 1;
  309.     nFlagPaged* = 2;
  310.     nFlagCtrlC* = 4;
  311.     nFlagOLMWaiting* = 8;
  312.     nFlagHandlingOLM* = 16;
  313.  
  314.     (* flags for DOORContinuePrompt *)
  315.     DefaultNone* = 0;
  316.     DefaultYes* = 1;
  317.     DefaultNo* = 2;
  318.     DCPAddYN* = 4;
  319.  
  320.     (* used in NnD^.Actions, to set an access flag just use the follow:
  321.        NnD^.Actions[ActN<Action>] = ActC<Action>;
  322.        where action is one of the names below *)
  323.     ActCNone* = " ";            (* all actions default to this *)
  324.     ActNHack* = 0;
  325.     ActCHack* = "H";            (* user failed to enter a correct password *)
  326.     ActNCarrierLost* = 1;
  327.     ActCCarrierLost* = "L";     (* user loss carrier *)
  328.     ActNFilescan* = 2;
  329.     ActCFilescan* = "S";        (* user scanned one or more filelists *)
  330.     ActNWroteMail* = 3;
  331.     ActCWroteMail* = "W";       (* user wrote some mail *)
  332.     ActNReadMail* = 4;
  333.     ActCReadMail* = "R";        (* user read some mail *)
  334.     ActNPaged* = 5;
  335.     ActCPaged* = "P";           (* user paged the sysop *)
  336.     ActNUpload* = 6;
  337.     ActCUpload* = "U";          (* user uploaded files *)
  338.     ActNFailedUpload* = 7;
  339.     ActCFailedUpload* = "u";    (* user failed an upload *)
  340.     ActNDownload* = 8;
  341.     ActCDownload* = "D";        (* user downloaded files *)
  342.     ActNFailedDownload* = 9;
  343.     ActCFailedDownload* = "d";  (* user failed a download *)
  344.     ActNChangedSettings* = 10;
  345.     ActCChangedSettings* = "C"; (* user changed it's settings *)
  346.     ActNChattedToSysop* = 11;
  347.     ActCChattedToSysop* = "1";  (* sysop chatted to the user *)
  348.     ActNNukedFiles* = 12;
  349.     ActCNukedFiles* = "X";      (* user used the nuker *)
  350.     ActNNewUser* = 13;
  351.     ActCNewUser* = "N";         (* user is a new user *)
  352.  
  353.     LenActions* = 14;
  354.  
  355.     (* flags for LoadConfig *)
  356.     LCFGNone* = 0;
  357.     LCFGNoStripComments* = 1;
  358.     LCFGNoStripSpaces* = 2;
  359.  
  360.     (* flags for CheckRaw *)
  361.     CRNone* = 0;
  362.     CRNoSerial* = 1;
  363.     CRNoConsole* = 2;
  364.  
  365.     LenDIZWidth = 45;
  366.  
  367. END BBSConstants.
  368.  
  369.